import { DateRangeType } from "@/utils/timeTool";
import { ReportType } from "@/services/myXmate";

export function mapReportType(dateRangeType: DateRangeType) {
  if (dateRangeType === DateRangeType.YEAR) return ReportType.YEARLY;
  if (dateRangeType === DateRangeType.QUARTER) return ReportType.QUARTERLY;
  if (dateRangeType === DateRangeType.MONTH) return ReportType.MONTHLY;
  if (dateRangeType === DateRangeType.WEEK) return ReportType.WEEKLY;
  console.error("mapReportType 异常");
  return ReportType.QUARTERLY;
}
